
package com.hndfsj.common.domain;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

/**
 * TODO
 * 
 * @copyright {@link www.hndfsj.com}
 * @author ZhengXingJian<Auto generate>
 * @version 2016-11-09 11:44:23
 * @see com.hndfsj.app.common.domain.Values
 */
public class Values implements java.io.Serializable {

	private static final long serialVersionUID = 5454155825314635342L;

	// date formats

	// columns START
	/**
	 * id
	 */
	private java.lang.String id;
	/**
	 * value
	 */
	private java.lang.String value;
	// columns END

	// concstructor

	public Values() {
	}

	public Values(java.lang.String id) {
		this.id = id;
	}

	public Values(String key, String originUrl) {
		this.id = key;
		this.value=originUrl;
	}

	// get and set
	public void setId(java.lang.String value) {
		this.id = value;
	}

	public java.lang.String getId() {
		return this.id;
	}

	public void setValue(java.lang.String value) {
		this.value = value;
	}

	public java.lang.String getValue() {
		return this.value;
	}

	public String toString() {
		return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE).append("Id", getId())
				.append("Value", getValue()).toString();
	}

	public int hashCode() {
		return new HashCodeBuilder().append(getId()).toHashCode();
	}

	public boolean equals(Object obj) {
		if (obj instanceof Values == false)
			return false;
		if (this == obj)
			return true;
		Values other = (Values) obj;
		return new EqualsBuilder().append(getId(), other.getId()).isEquals();
	}
}
